<!-- start: Content -->
<div class="main">
    <!--面包屑 START-->
    <div class="row">
        <div class="col-lg-12">
            <h3 class="page-header"><i class="fa fa-file-text"></i>添加淘客商品</h3>
            <ol class="breadcrumb">
                <li><i class="fa fa-home"></i><a href="/Admin">首页</a></li>
                <li><i class="fa fa-leaf"></i><a href="{:U('Contents/taobao')}">淘客商品管理</a></li>
                <li><i class="fa fa-align-left"></i>添加淘客商品</li>
                <li id="no-be"><i class="fa fa-mail-reply"></i><a href="{:U('Contents/taobao')}">返回上一级</a></li>
            </ol>

        </div>
    </div>
    <!--面包屑 END-->

    <!--右侧内容主体 START-->
    <div class="row">
        <div class="col-lg-12">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h2><i class="fa fa-indent red"></i><strong>添加淘客商品</strong></h2>
                    <div class="panel-actions">
                        <a href="javascript:;" class="btn-setting"><i class="fa fa-rotate-right black"></i></a>
                        <a href="javascript:;" class="btn-minimize"><i class="fa fa-chevron-up black"></i></a>
                        <a href="javascript:;" class="btn-close"><i class="fa fa-times black"></i></a>
                    </div>
                </div>
                <div class="panel-body">
                    <form class="form-horizontal" id="addTaobaoGoodsForm">
                        <div class="form-group">
                            <label class="col-lg-2 col-md-2 col-sm-12 control-label"></label>
                            <div class="col-lg-10 col-md-10">
                                <div class="row">
                                    <div class="col-lg-3 col-md-3">
                                    </div>
                                </div>
                            </div>
                        </div>
						
                        <div class="form-group">
                            <label class="col-lg-2 col-md-2 col-sm-12 control-label">商品标题</label>
                            <div class="col-lg-10 col-md-10">
                                <div class="row">
                                    <div class="col-lg-4 col-md-4">
                                        <input name="goods_name" type="text" class="form-control" value="{$data['goods_name']}" />
                                    </div>
                                </div>
                            </div>
                        </div>
						<div class="form-group">
                            <label class="col-lg-2 col-md-2 col-sm-12 control-label">商品标语</label>
                            <div class="col-lg-10 col-md-10">
                                <div class="row">
                                    <div class="col-lg-4 col-md-4">
                                        <textarea name="goods_desc" rows="3" placeholder="商品标语" class="form-control">{$data['goods_desc']}</textarea>
                                    </div>
                                </div>
                            </div>
                        </div>
						<div class="form-group">
                            <label class="col-lg-2 col-md-2 col-sm-12 control-label">售价</label>
                            <div class="col-lg-10 col-md-10">
                                <div class="row">
                                    <div class="col-lg-4 col-md-4">
                                        <input name="sale_price" type="number" class="form-control" value="{$data['sale_price']}" />
                                    </div>
                                </div>
                            </div>
                        </div>
						<div class="form-group">
                            <label class="col-lg-2 col-md-2 col-sm-12 control-label">市场价</label>
                            <div class="col-lg-10 col-md-10">
                                <div class="row">
                                    <div class="col-lg-4 col-md-4">
                                        <input name="market_price" type="number" class="form-control" value="{$data['market_price']}" />
                                    </div>
                                </div>
                            </div>
                        </div>
						<div class="form-group">
                            <label class="col-lg-2 col-md-2 col-sm-12 control-label">短链接</label>
                            <div class="col-lg-10 col-md-10">
                                <div class="row">
                                    <div class="col-lg-4 col-md-4">
                                        <input name="short_link" type="text" class="form-control" value="{$data['short_link']}" placeholder="短链接" />
                                    </div>
                                </div>
                            </div>
                        </div>
						<div class="form-group">
                            <label class="col-lg-2 col-md-2 col-sm-12 control-label">长链接</label>
                            <div class="col-lg-10 col-md-10">
                                <div class="row">
                                    <div class="col-lg-4 col-md-4">
                                        <input name="long_link" type="text" class="form-control" value="{$data['long_link']}" placeholder="长链接" />
                                    </div>
                                </div>
                            </div>
                        </div>
						<div class="form-group">
                            <label class="col-lg-2 col-md-2 col-sm-12 control-label">可选色</label>
                            <div class="col-lg-10 col-md-10">
                                <div class="row">
                                    <div class="col-lg-4 col-md-4">
										<select class="form-control" name="colors">
											<option <if condition="$data.colors eq 1 ">selected=true</if> value="1">1种</option>
											<option <if condition="$data.colors eq 2 ">selected=true</if> value="2">2种</option>
											<option <if condition="$data.colors eq 3 ">selected=true</if> value="3">3种</option>
											<option <if condition="$data.colors eq 4 ">selected=true</if> value="4">4种</option>
											<option <if condition="$data.colors eq 5 ">selected=true</if> value="5">5种</option>
											<option <if condition="$data.colors eq 6 ">selected=true</if> value="6">6种</option>
											<option <if condition="$data.colors eq 7 ">selected=true</if> value="7">7种</option>
											<option <if condition="$data.colors eq 8 ">selected=true</if> value="8">8种</option>
											<option <if condition="$data.colors eq 9 ">selected=true</if> value="9">9种</option>
										</select>
                                    </div>
                                </div>
                            </div>
                        </div>
						<div class="form-group">
                            <label class="col-lg-2 col-md-2 col-sm-12 control-label">平台</label>
                            <div class="col-lg-10 col-md-10">
                                <div class="row">
                                    <div class="col-lg-4 col-md-4">
                                        <label class="radio-inline">
										  <input type="radio" name="brand" id="brand1" <if condition="$data.brand eq '淘宝' ">checked</if> value="淘宝"> 淘宝
										</label>
										<label class="radio-inline">
										  <input type="radio" name="brand" <if condition="$data.brand eq '天猫' ">checked</if> id="brand2" value="天猫"> 天猫
										</label>
										<label class="radio-inline">
										  <input type="radio" name="brand" id="brand3" <if condition="$data.brand eq '京东' ">checked</if> value="京东"> 京东
										</label>
										<label class="radio-inline">
										  <input type="radio" name="brand" id="brand4" <if condition="$data.brand eq '苏宁' ">checked</if> value="苏宁"> 苏宁
										</label>
                                    </div>
                                </div>
                            </div>
                        </div>
						<div class="form-group">
                            <label class="col-lg-2 col-md-2 col-sm-12 control-label">商品图地址</label>
                            <div class="col-lg-10 col-md-10">
                                <div class="row">
                                    <div class="col-lg-4 col-md-4">
                                        <input name="pic" type="text" class="form-control" value="{$data['pic']}" placeholder="商品图地址" />
                                    </div>
                                </div>
                            </div>
                        </div>
						<div class="form-group">
                            <label class="col-lg-2 col-md-2 col-sm-12 control-label">佣金金额</label>
                            <div class="col-lg-10 col-md-10">
                                <div class="row">
                                    <div class="col-lg-4 col-md-4">
                                        <input name="commission" type="text" class="form-control" value="{$data['commission']}" placeholder="佣金金额" />
                                    </div>
                                </div>
                            </div>
                        </div>
						<div class="form-group">
                            <label class="col-lg-2 col-md-2 col-sm-12 control-label">佣金比率</label>
                            <div class="col-lg-10 col-md-10">
                                <div class="row">
                                    <div class="col-lg-4 col-md-4">
                                        <input name="ratio" type="text" class="form-control" value="{$data['ratio']}" placeholder="佣金比率" />
                                    </div>
                                </div>
                            </div>
                        </div>
						<div class="form-group">
                            <label class="col-lg-2 col-md-2 col-sm-12 control-label">状态</label>
                            <div class="col-lg-10 col-md-10">
                                <div class="row">
                                    <div class="col-lg-4 col-md-4">
                                        <label class="radio-inline">
										  <input type="radio" name="status" id="status1" <if condition="$data['status'] eq 1">checked</if> value="1"> 启用
										</label>
										<label class="radio-inline">
										  <input type="radio" name="status" id="status2" <if condition="$data['status'] eq 0">checked</if> value="0"> 禁用
										</label>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-actions" style="margin-bottom: 40px;">
                            <label class="col-md-2 control-label"></label>
                            <div class="col-md-10">
								<input type="hidden" name="id" value="{$data['id']}">
                                <button type="submit" class="btn btn-success"><i class="fa fa-dot-circle-o"></i> 确认提交</button>
                                <button type="reset" class="btn btn-danger "><i class="fa fa-ban"></i> 重置</button>
                            </div>
                        </div>
                    </form>
                </div>

            </div>
        </div><!--/col-->

    </div>
    <!--右侧内容主体 END-->
</div>
<!-- end: Content -->
